home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / autoconfig / nsIAutoConfig.h next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  108 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIAutoConfig.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIAutoConfig_h__
  6. #define __gen_nsIAutoConfig_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. #define NS_AUTOCONFIG_CID\
  18.   { 0xe036c738,\
  19.     0x1dd1,\
  20.     0x11b2,\
  21.     { 0x93, 0x92, 0x9d, 0x94, 0xaa, 0x74, 0xb0, 0xc5 }\
  22.   }
  23.  
  24. #define NS_AUTOCONFIG_CONTRACTID \
  25.   "@mozilla.org/autoconfiguration;1" 
  26. #define NS_AUTOCONFIG_CLASSNAME "AutoConfig Module"
  27.  
  28. /* starting interface:    nsIAutoConfig */
  29. #define NS_IAUTOCONFIG_IID_STR "80db54ae-13f2-11d5-be44-00108335a220"
  30.  
  31. #define NS_IAUTOCONFIG_IID \
  32.   {0x80db54ae, 0x13f2, 0x11d5, \
  33.     { 0xbe, 0x44, 0x00, 0x10, 0x83, 0x35, 0xa2, 0x20 }}
  34.  
  35. class NS_NO_VTABLE nsIAutoConfig : public nsISupports {
  36.  public: 
  37.  
  38.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IAUTOCONFIG_IID)
  39.  
  40.   /* attribute string configURL; */
  41.   NS_IMETHOD GetConfigURL(char * *aConfigURL) = 0;
  42.   NS_IMETHOD SetConfigURL(const char * aConfigURL) = 0;
  43.  
  44. };
  45.  
  46. /* Use this macro when declaring classes that implement this interface. */
  47. #define NS_DECL_NSIAUTOCONFIG \
  48.   NS_IMETHOD GetConfigURL(char * *aConfigURL); \
  49.   NS_IMETHOD SetConfigURL(const char * aConfigURL); 
  50.  
  51. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  52. #define NS_FORWARD_NSIAUTOCONFIG(_to) \
  53.   NS_IMETHOD GetConfigURL(char * *aConfigURL) { return _to GetConfigURL(aConfigURL); } \
  54.   NS_IMETHOD SetConfigURL(const char * aConfigURL) { return _to SetConfigURL(aConfigURL); } 
  55.  
  56. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  57. #define NS_FORWARD_SAFE_NSIAUTOCONFIG(_to) \
  58.   NS_IMETHOD GetConfigURL(char * *aConfigURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConfigURL(aConfigURL); } \
  59.   NS_IMETHOD SetConfigURL(const char * aConfigURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetConfigURL(aConfigURL); } 
  60.  
  61. #if 0
  62. /* Use the code below as a template for the implementation class for this interface. */
  63.  
  64. /* Header file */
  65. class nsAutoConfig : public nsIAutoConfig
  66. {
  67. public:
  68.   NS_DECL_ISUPPORTS
  69.   NS_DECL_NSIAUTOCONFIG
  70.  
  71.   nsAutoConfig();
  72.  
  73. private:
  74.   ~nsAutoConfig();
  75.  
  76. protected:
  77.   /* additional members */
  78. };
  79.  
  80. /* Implementation file */
  81. NS_IMPL_ISUPPORTS1(nsAutoConfig, nsIAutoConfig)
  82.  
  83. nsAutoConfig::nsAutoConfig()
  84. {
  85.   /* member initializers and constructor code */
  86. }
  87.  
  88. nsAutoConfig::~nsAutoConfig()
  89. {
  90.   /* destructor code */
  91. }
  92.  
  93. /* attribute string configURL; */
  94. NS_IMETHODIMP nsAutoConfig::GetConfigURL(char * *aConfigURL)
  95. {
  96.     return NS_ERROR_NOT_IMPLEMENTED;
  97. }
  98. NS_IMETHODIMP nsAutoConfig::SetConfigURL(const char * aConfigURL)
  99. {
  100.     return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102.  
  103. /* End of implementation class template. */
  104. #endif
  105.  
  106.  
  107. #endif /* __gen_nsIAutoConfig_h__ */
  108.